import 'package:flutter/material.dart';
import 'package:flutter_demo/tmac/widget/AllDrawableTextWidget2.dart';

class CardViewItemWidget extends StatelessWidget {
  final String content;
  final Widget icon;

  CardViewItemWidget({Key key, @required this.content, @required this.icon});

  @override
  Widget build(BuildContext context) {
    return InkWell(
      borderRadius: BorderRadius.circular(8),
      child: Card(
        semanticContainer: false,
        elevation: 4,
        shape: RoundedRectangleBorder(
            borderRadius: BorderRadius.all(Radius.circular(8))),
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          mainAxisSize: MainAxisSize.min,
          children: <Widget>[
            AllDrawableTextWidget2(
              title: Text(content),
              iconTop: icon,
            )
          ],
        ),
      ),
    );
  }
}
